Hi Matt,
because you asked in the advanced-users group,
I assume short answers will suffice ;-)
First question:
You are actually asking for the normal of an object at v1: use trace()
to shoot a ray at v1 and get the normal (your v2) at this point.
(look for trace at "6.1.4.6 Vector Functions")
Second question:
The Advanced Tutorial ("4.2 POV-Ray SDL tutorial: A raytracer")
should give you some hints, esp. "4.2.3 Short introduction to
raytracing" and "4.2.7 Ray-sphere intersection"
Sputnik
Post a reply to this message
|